package com.java.cloud.service;

import com.java.cloud.dao.SysTerminalDao;
import com.java.cloud.entity.SysTerminal;
import jdk.nashorn.internal.ir.Terminal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: SysTerminalServiceImpl
 * @Description:
 * @Version: v1.0.0
 * @Author: Fu Hao
 * @Date: 2019/10/15 0015 上午 11:22
 * Modification History:
 * Date           Author      Version     Description
 * -------------------------------------------------------------
 * 2019/10/15 0015        Fu Hao      v1.0.0         创建
 */
@Service("SysTerminalService")
public class SysTerminalServiceImpl implements SysTerminalService{

    @Autowired
    private SysTerminalDao sysTerminal;



    /*@Autowired
    private SysTerminalManagerDao sysTerminalManager;*/

    /**
     * 终端基础信息查询：终端信息+店主信息
     * @param id
     * @return
     */
    @Override
    public List<SysTerminal> findTerminal(String id) {

        return sysTerminal.findTerminal(id);
    }


    @Override
    public int updateMap(String id, String longitude, String latitude) {
       return sysTerminal.updateMap(id,longitude,latitude);
    }

    /*终端基础信息保存*/
    @Override
    public int insertTerminal(Terminal terminal) {
        return sysTerminal.insertTerminal((SysTerminal) terminal);
    }


}
